public class Lianxi {
    public static void main(String[] args){
        int[] sun={11,22,7,33,55};
        int i=app(sun);
        System.out.println(i);
    }

    public static int app(int[] arr){
        int sum=arr[0];
        for (int i=1;i<arr.length;i++){
            if (sum>arr[i]){
                sum=arr[i];
            }
        }return sum;
    }
}
